<template>
<div class="dismissal" >
    <!-- <von-header theme="assertive">
        <button class="button button-icon ion-ios-arrow-back" @click="onBackButtonClick" slot="left"></button>
        <span slot="title">驳回原因</span>
        <button class="button button-icon " @click="edit" slot="right">去编辑</button>
    </von-header> -->
    <div class="page has-navbar has-tabbar" v-nav="{title: '驳回原因', showBackButton: true,showMenuButton: true, onMenuButtonClick: edit,menuButtonText:'申请入库'}">
        <div class="page-content padding-top reject">
            <p class="reject-content">{{content}}</p>
        </div>
    </div>
</div>
  
</template>
<script>
    export default {
        data () {
            return {
                content: ''
            }
        },
        mounted () {
            window.axios.get(baseUrl + '/controller/carLog/getCarLogList', {params: {carId: this.$route.params.id}}).then(res => {
             res && (this.content = res.data.result[res.data.result.length - 1].carLogInfo)
            })

        },
        methods: {
            edit () {
                // this.$router.push({
                //     path: `/edit/${this.$route.params.id}`
                // })
                 this.$router.forward('/shelves_step1?carId=' + this.$route.params.id);

            },
            // onBackButtonClick () {
			// 	// this.$store.commit('carObjStateChange', true)
			// 	this.$router.go(-1)
			// }
        }
    }
</script>

<style scoped>
.dismissal{ position: relative;height: 100vh;}
.reject{position: absolute; right: 0; left: 0; }

.gobj{position: absolute; top: 0; right: 50px; color: #fff; font-size: 14px; z-index: 1000;}
</style>
